var recruitSvc = require("../../services/recruitSvc");
//招聘主页轮播
exports.getCategoryCarouselList = function (req, res) {
    recruitSvc.getCategoryCarouselList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//招聘主页职位列表
exports.getEnterpriseRecruitList = function (req, res) {
    recruitSvc.getEnterpriseRecruitList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取招聘圈子列表
exports.getCategoryCirclesList = function (req, res) {
    recruitSvc.getCategoryCirclesList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//招聘搜索历史
exports.recruitSearchHistory = function (req, res) {
    recruitSvc.recruitSearchHistory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//搜索职位
exports.searchRecruit = function (req, res) {
    recruitSvc.searchRecruit(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//招聘职位详情
exports.getRecruitInfo = function (req, res) {
    recruitSvc.getRecruitInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//招聘-职位企业信息
exports.getEnterpriseRecruitListById = function (req, res) {
    recruitSvc.getEnterpriseRecruitListById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//投递职位
exports.deliveryRecruitInfo = function (req, res) {
    recruitSvc.deliveryRecruitInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//删除搜索历史
exports.deleteSearchHistory = function (req, res) {
    recruitSvc.deleteSearchHistory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//清空搜索历史
exports.emptySearchHistory = function (req, res) {
    recruitSvc.emptySearchHistory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};